// $Header: $

using System;
using System.Data;

using System.Collections;
using System.Collections.Generic;

namespace LogParser.Collections
{
    /// <summary>
    /// Summary description for LogParser.Collections.CustomKillList.
    /// </summary>
    public class CustomKillList
    {
        #region Private Member Variables

        private DA.CustomKillModel _model;
        Hashtable _customKillList;

        #endregion

        #region Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomKillList"/> class.
        /// </summary>
        public CustomKillList( )
        {
            Initialize();
        }

        private void Initialize( )
        {

            _customKillList = new Hashtable();
            _model = new LogParser.DA.CustomKillModel();

            List<GameObjects.CustomKill> customKillList = _model.GetCustomKillList();

            foreach ( GameObjects.CustomKill tempCustomKill in customKillList )
            {
                _customKillList.Add( tempCustomKill.ShortName, tempCustomKill );
            }

        }

        #endregion

        #region Public Properties

        #endregion

        #region Private Properties

        #endregion

        #region Public Member Functions

        public GameObjects.CustomKill GetCustomKill( string customKillName )
        {
            GameObjects.CustomKill returnCustomKill = new LogParser.GameObjects.CustomKill();

            returnCustomKill = ( GameObjects.CustomKill ) ( _customKillList[ customKillName ] );

            return returnCustomKill;

        }


        #endregion

        #region Private Member Functions

        #endregion
    }
}

#region VSS Log

/*
 * $Log: $
 */

#endregion VSS Log